package com.asen.alibaba.webconfig;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName RestTemplateConfig
 * @Deacription TODO
 * @Author chenxin
 * @Date 2021/3/19 15:16
 **/
@Configuration
public class RestTemplateConfig {

    /*RestTemplate*/
    @Bean
    @LoadBalanced
    RestTemplate restTemplate(){
        return new RestTemplate();
    }



}
